package divers;

import java.io.File;
import java.io.FileReader;
import java.io.BufferedReader;
import java.io.IOException;

public class FichierNormalise {
	public static final String DELIMITEUR = ";";
	public static final String EXTENSION = ".nor";
	private File fnorm;

	public FichierNormalise(File f, boolean deleteOnExit) {
		fnorm = f;
		if (deleteOnExit)
			fnorm.deleteOnExit();
	}
	
	public File getFile() {
		return fnorm;
	}
	
	public void affiche() {
		try {
			BufferedReader brin = new BufferedReader(new FileReader(fnorm));
			String s;
			while ((s = brin.readLine()) != null)
				System.out.println(s);
			brin.close();
		}
		catch (IOException e) {
			System.err.println("Erreur d'E/S : " + e);
		}
	}
}
